## automake.am
##
## Automake.am for rivendell/rdcatch
##
## (C) Copyright 2002-2006 Fred Gleason <fredg@paravelsystems.com>
##
##      $Id: Makefile.am,v 1.34 2007/09/14 14:06:49 fredg Exp $
##
##   This program is free software; you can redistribute it and/or modify
##   it under the terms of the GNU General Public License version 2 as
##   published by the Free Software Foundation.
##
##   This program is distributed in the hope that it will be useful,
##   but WITHOUT ANY WARRANTY; without even the implied warranty of
##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##   GNU General Public License for more details.
##
##   You should have received a copy of the GNU General Public
##   License along with this program; if not, write to the Free Software
##   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
##
## Use automake to process this into a Makefile.in

AM_CPPFLAGS = -Wall -DPREFIX=\"$(prefix)\" -DQTDIR=\"@QT_DIR@\" @QT_CXXFLAGS@
INCLUDES = -I$(top_srcdir)/lib
LIBS = @QT_LIBS@ -L$(top_srcdir)/lib
MOC = @QT_MOC@

# The dependency for qt's Meta Object Compiler (moc)
moc_%.cpp:	%.h
	$(MOC) $< -o $@

# I18N Stuff
install-exec-local:	
	mkdir -p $(DESTDIR)$(prefix)/share/srlabs
	cp rdcatch_*.qm $(DESTDIR)$(prefix)/share/srlabs

uninstall:
	rm -f $(DESTDIR)$(prefix)/share/srlabs/rdcatch_*.qm

all:	
	@QT_BIN@/lupdate rdcatch.pro
	@QT_BIN@/lrelease rdcatch.pro

bin_PROGRAMS = rdcatch

dist_rdcatch_SOURCES = rdcatch.cpp rdcatch.h\
                       add_recording.cpp add_recording.h\
                       edit_recording.cpp edit_recording.h\
                       edit_playout.cpp edit_playout.h\
                       edit_cartevent.cpp edit_cartevent.h\
                       edit_switchevent.cpp edit_switchevent.h\
                       edit_download.cpp edit_download.h\
                       edit_upload.cpp edit_upload.h\
                       deckmon.cpp deckmon.h\
                       catch_monitor.cpp catch_monitor.h\
                       vbox.cpp vbox.h\
                       list_reports.cpp list_reports.h\
                       catch_listview.cpp catch_listview.h\
                       colors.h globals.h

nodist_rdcatch_SOURCES = moc_rdcatch.cpp\
                         moc_add_recording.cpp moc_edit_recording.cpp\
                         moc_edit_cartevent.cpp moc_edit_switchevent.cpp\
                         moc_edit_download.cpp moc_edit_upload.cpp\
                         moc_deckmon.cpp moc_edit_playout.cpp moc_vbox.cpp\
                         moc_list_reports.cpp moc_catch_listview.cpp

rdcatch_LDADD = -lqui -lrd -lid3 -lFLAC @LIBVORBIS@
# rdcatch_LDFLAGS = -static

EXTRA_DIST = rdcatch.pro rdcatch_es.ts

CLEANFILES = *~ moc_* *.qm
MAINTAINERCLEANFILES = *~ Makefile.in configure aclocal.m4 *.tar.gz moc_*
